/*    */ package com.hs.activation.service.impl;
/*    */ 
/*    */ import com.baomidou.mybatisplus.core.conditions.Wrapper;
/*    */ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
/*    */ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
/*    */ import com.hs.activation.entity.WxUserEntity;
/*    */ import com.hs.activation.mapper.WxUserMapper;
/*    */ import com.hs.activation.service.IWxUserService;
/*    */ import java.lang.invoke.SerializedLambda;
/*    */ import java.util.List;
/*    */ import org.springframework.stereotype.Service;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ @Service
/*    */ public class WxUserServiceImple
/*    */   extends ServiceImpl<WxUserMapper, WxUserEntity>
/*    */   implements IWxUserService
/*    */ {
/*    */   public List<WxUserEntity> queryList(Long activationid) {
/* 26 */     LambdaQueryWrapper<WxUserEntity> query = new LambdaQueryWrapper();
/* 27 */     query.eq(WxUserEntity::getActivationid, activationid);
/* 28 */     List<WxUserEntity> result = list((Wrapper)query);
/* 29 */     return result;
/*    */   }
/*    */ 
/*    */   
/*    */   public boolean update(WxUserEntity entity) {
/* 34 */     boolean result = updateById(entity);
/* 35 */     return result;
/*    */   }
/*    */   
/*    */   public WxUserEntity findById(Long id) {
/* 39 */     WxUserEntity result = (WxUserEntity)getById(id);
/* 40 */     return result;
/*    */   }
/*    */ 
/*    */   
/*    */   public WxUserEntity findByOpenId(String openid) {
/* 45 */     LambdaQueryWrapper<WxUserEntity> query = new LambdaQueryWrapper();
/* 46 */     query.eq(WxUserEntity::getOpenid, openid);
/* 47 */     query.last("limit 1");
/* 48 */     WxUserEntity result = (WxUserEntity)getOne((Wrapper)query);
/* 49 */     return result;
/*    */   }
/*    */ }


/* Location:              C:\Users\yzc\Desktop\新建文件夹 (3)\activation-0.0.16.jar!\BOOT-INF\classes\com\hs\activation\service\impl\WxUserServiceImple.class
 * Java compiler version: 16 (60.0)
 * JD-Core Version:       1.1.3
 */